//
//  DescriptionViewController.m
//  LoveListen
//
//  Created by 王喆 on 15/7/4.
//  Copyright (c) 2015年 王喆. All rights reserved.
//

#import "DescriptionViewController.h"
#define kScreenSize [UIScreen mainScreen].bounds.size


@interface DescriptionViewController ()

@end

@implementation DescriptionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatLabel];
    [self creatButton];
    self.navigationController.navigationBarHidden = NO;
    
    
    
    
    
}


-(void)creatLabel{
    UIImageView *imageView=  [[UIImageView alloc]initWithFrame:CGRectMake(10, 64, kScreenSize.width-20, kScreenSize.height/2)];
    imageView.image = [UIImage imageNamed:@"bg_msgbox_1"];
    [self.view addSubview:imageView];
    
    
    
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 20,kScreenSize.width-30 , kScreenSize.height/2)];
    UILabel *label2 = [[UILabel alloc]initWithFrame:CGRectMake(0, 20,kScreenSize.width-30 , kScreenSize.height/2)];
    label.text = self.intro;
    label2.text = self.personalSignature;
   
    label.numberOfLines = 0;
    label2.numberOfLines = 0;
   // label.backgroundColor=  [UIColor colorWithRed:204/255.0 green:195/255.0 blue:193/255.0 alpha:0.5];
    [imageView addSubview:label];
    [imageView addSubview:label2];

    self.view.backgroundColor = [UIColor whiteColor];
    
  }

-(void)creatButton{

    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    
    button.frame  = CGRectMake(20, 30, 30, 30);
    
    [button setImage:[UIImage imageNamed:@"btn_giftView_close"] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(benClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];

}

-(void)benClick{
    [self dismissViewControllerAnimated:YES completion:nil];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
